package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Hugo
 * Date: 25/01/13
 * Time: 08:30
 * To change this template use File | Settings | File Templates.
 */
public class Book {
    private String Name;

    public Book(String Name)
    {
        this.Name = Name;
    }

    public String GetName()
    {
        return this.Name;
    }

    @Override public boolean equals(Object obj)
    {
        if(this == obj)
        {
            return true;
        }
        if(!(obj instanceof Book))
        {
            return false;
        }
        Book b = (Book)obj;
        if( this.GetName().equalsIgnoreCase(b.GetName()))
        {
            return true;
        }
        return false;
    }


}
